﻿@model AgileDashboard.Entities.VoteDetail

@{
    ViewBag.Title = "Enter your Vote";
}

<h2>Enter your Vote for Work Item @(Model.WorkItem.Id)</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>VoteDetail</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Vote)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Vote)
            @Html.ValidationMessageFor(model => model.Vote)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Notes)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Notes,15,80,null)
            @Html.ValidationMessageFor(model => model.Notes)
        </div>
        @Html.HiddenFor(model => model.WorkItem.Id)
        <p>
            <input type="submit" value="Submit Vote(Cannot Be Changed)" />
        </p>
    </fieldset>
}
